﻿namespace AltNetUK
{
    using System.Diagnostics.CodeAnalysis;
    using System.Web;
    using System.Web.Mvc;
    using System.Web.Routing;
    using AltNetUK.Web.Routing;
    using AltNetUK.Models;

    [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Mvc", Justification = "Blame ASP.NET MVC")]
    public class MvcApplication : HttpApplication
    {
        [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Justification = "Cannot be static.")]
        protected void Application_Start()
        {
            ModelBinders.Binders[typeof(RegistrationForm)] = new RegistrationForm();
            RouteTable.Routes.Register();
        }
    }
}